package com.fita.wechat.rao;

import com.demo2do.core.entity.result.HttpResult;
import com.demo2do.core.http.HttpMethod;
import com.demo2do.core.http.annotation.Rao;
import com.demo2do.core.http.annotation.RaoConfig;
import com.demo2do.core.http.annotation.RaoMapping;
import com.demo2do.core.http.annotation.RaoParam;
import com.demo2do.core.http.annotation.RaoUrl;

/**
 * 
 * @author mohanlan
 *
 */
@Rao
@RaoConfig(parse = true)
public interface WechatRao {
    
    /**
     * 
     * @param requestUrl
     * @return
     */
    @RaoMapping(method = HttpMethod.GET)
    public HttpResult requestAccessToken(@RaoUrl String requestUrl);
    
    /**
     * 
     * @param requestUrl
     * @return
     */
    @RaoMapping(method = HttpMethod.GET)
    public HttpResult requestJsTicket(@RaoUrl String requestUrl);
    
    /**
     * 
     * @param url
     * @param uuid
     * @return
     */
    @RaoMapping(method = HttpMethod.POST)
    public HttpResult login(@RaoUrl String url, @RaoParam("uuid") String uuid);
    
}
